<?php
if (!defined('INDEX')) {
	exit ('Access Denied');
}

?>
<script>
$(function(){
	<?php if($dd_tpl_data['app']==1){?>
	var close_tishi=getCookie('close_tishi');
	if(close_tishi!=1){
		$('.down_app').show();
	}
	<?php }?>
});
function close_tishi(){
	setCookie('close_tishi',1);
	$('.down_app').hide();
}

function s8Tijiao($t){
	<?php if($dd_wap_class->is_weixin()==1){?>
	document.getElementById('weixindiv').style.display='block';
	return false;
	<?php }else{?>
	var v=$t.find('.keyW').val();
	if(v==''){
		alert('请输入搜索内容');
		return false;
	}
	<?php }?>
}
</script>
<div class="clear"></div> 
 <?php if($mod=='fenlei' || $act=='register1'){?><?php }else{?>
<?php if($_GET['act'] !== 'register' && $_GET['act'] !== 'login') { ?>
<div class="footer footer_b">
<p class="gwcLogin">
<?php if($dduser['id']>0){?>
<a href="<?=wap_l('user')?>" >会员中心</a><span></span>
<?php }else{?>
<!-- <a href="<?=wap_l('user')?>" >登录</a><span></span> -->
<?php }?>
<a href="<?=wap_l('help')?>">帮助中心</a>
<span></span>
<?php if($dd_tpl_data['vipduoapp_open']==0){?><a href="<?=u('app','phone')?>" class="a3"><span id="goods_number">new</span>下载app</a><?php }?>
<?php if($dd_tpl_data['vipduoapp_open']==1){?><a href="<?=wap_l('inc','app')?>" class="a3"><span id="goods_number">new</span>下载app</a><?php }?>
<span></span>
<a href="<?=wap_l()?>">触屏版</a>
</p></div>
<?php } ?>
<div class="copyright"><?=$dd_tpl_data['banquan']?><?=$dd_tpl_data['tongji']?></div>
	




<div class="download-con"<?php if($dd_tpl_data['foot_open']==0){?> style="bottom:0"<?php }?> >
	<div class="down_app" style="display:none">
    	<div class="download-logo">
        	<img src="<?=$dd_tpl_data['tubiao']?>" width="100%" height="100%"  style="border-radius:5px;"/>
        </div>
        <div class="alogo">
        	<p class="client-name"><?=$dd_tpl_data['tishi_words']?$dd_tpl_data['tishi_words']:'使用客户端拿返利更快捷方便'?></p>
        </div>
        <div class="open_now">
        	<?php if($dd_tpl_data['vipduoapp_open']==0){?><a href="<?=u('app','phone')?>"><?php }?>
			<?php if($dd_tpl_data['vipduoapp_open']==1){?><a href="<?=wap_l('inc','app')?>"><?php }?>
            	<span class="open_btn">立即打开</span>
            </a>
        </div>
        <div class="close-btn-con" onclick="close_tishi()">
        	<span class="close-btn-icon"><img src="<?=TPLURL?>/inc/images/index.png" width="12" height="12" /></span>
        </div>
    </div>
</div>


<?php }?>

<script type="text/javascript" src="<?=TPLURL?>/inc/js/fenlei.js"></script>
 <?php if($dd_tpl_data['foot-kg']['open']==0){?> 
 <div class="fix-bottom">
    <a href="<?=wap_l('index')?>" class="fix-b-a <?php if($mod=='index'){?>bottom-n-cur<?php }?>">
      <img src="<?=TPLURL?>/inc/images/icon/today<?php if($mod=='index'){?>2<?php }?>.png"><br>首页
    </a>
	<a href="<?=wap_l('tao','index')?>" class="fix-b-a <?php if($mod=='tao'){?>bottom-n-cur<?php }?>">
        <img src="<?=TPLURL?>/inc/images/icon/fenlei<?php if($code=='tao'){?>2<?php }?>.png"><br>分类
    </a>
    <?php /*?>
    <a href="<?=wap_l('goods','index',array('code'=>'jiu'))?>" class="fix-b-a <?php if($code=='jiu'){?>bottom-n-cur<?php }?>">
        <img src="<?=TPLURL?>/inc/images/icon/gouwu<?php if($code=='jiu'){?>2<?php }?>.png"><br>逛街
    </a>
	<a href="<?=wap_l('goods','index',array('code'=>'quan'))?>" class="fix-b-a <?php if($code=='quan'){?>bottom-n-cur<?php }?>">
        <img src="<?=TPLURL?>/inc/images/icon/coupon<?php if($code=='quan'){?>2<?php }?>.png"><br>吃玩住行
    </a><?php */?>
    <a href="<?=wap_l('tao','index',array('ppp'=>0))?>" class="fix-b-a <?php if($code=='jiu'){?>bottom-n-cur<?php }?>">
        <img src="<?=TPLURL?>/inc/images/icon/gouwu<?php if($code=='jiu'){?>2<?php }?>.png"><br>逛街
    </a>
    <a href="<?=wap_l('goods','index',array('code'=>'chaofan'))?>" class="fix-b-a <?php if($code=='quan'){?>bottom-n-cur<?php }?>">
        <img src="<?=TPLURL?>/inc/images/icon/coupon<?php if($code=='quan'){?>2<?php }?>.png"><br>吃玩住行
    </a>
    <a href="<?=wap_l('user','index')?>" class="fix-b-a <?php if($mod=='user'){?>bottom-n-cur<?php }?>">
        <img src="<?=TPLURL?>/inc/images/icon/pinp<?php if($mod=='user'){?>2<?php }?>.png"><br>我的
    </a>
</div>
<?php }?>
<div id="weixindiv" onClick="document.getElementById('weixindiv').style.display='';"><img src="<?=TPLURL?>/inc/images/<?=$dd_wap_class->device_type()?>g.png"></div>
<div id="weixinshare" onClick="document.getElementById('weixinshare').style.display='';"><img src="<?=TPLURL?>/inc/images/weixinshare.png"></div>
</body></html>